package com.jia.springcloud.service.impl;

import com.jia.springcloud.dao.PaymentDao;
import com.jia.springcloud.entities.Payment;
import com.jia.springcloud.service.PaymentService;
import org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForYearMonth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 1038940655
 * @create 2021/1/19 16:00
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentDao paymentDao;



    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Integer id) {
        return paymentDao.getPaymentById(id);
    }
}
